package com.go.where.family.constants;

import com.go.where.family.utils.CommonUtil;

/**
 * 常量类
 * 
 * @author java
 * 
 */
public class Constant {

	/**
	 * 支付状态（1：未支付，2：已支付,3:支付失败）
	 */
	public static final String PAY_STATUS_NOT_PAY = "1";
	
	public static final String PAY_STATUS_PAYED = "2";
	
	public static final String PAY_STATUS_PAY_FAILED = "3";
	
	
	/**
	 * 订单状态（1：成功，2：失败，3：取消，4：处理中，5：申请退款，6：退款成功，7：退款失败）
	 */
	
	public static final String ORDER_STATUS_SUCCESS = "1";
	
	public static final String ORDER_STATUS_FAILED = "2";
	
	public static final String ORDER_STATUS_CANCEL = "3";
	
	public static final String ORDER_STATUS_PROGRESS = "4";
	
	public static final String ORDER_STATUS_APPLY_REFUND = "5";
	
	public static final String ORDER_STATUS_REFUND_SUCCESS = "6";
	
	public static final String ORDER_STATUS_REFUND_FAILED = "7";
	
	/**
	 * 支付类型：1：支付宝，2：微信
	 */
	public static final String PAY_TYPE_ALIPAY = "1";
	
	public static final String PAY_TYPE_WECHAT = "2";
	
	
	/**
	 * 用户正常在线
	 */
	public static final String USER_ON_LINE = "1";
	/**
	 * 用户正常离线
	 */
	public static final String USER_OFF_LINE = "2";
	/**
	 * 用户被锁定
	 */
	public static final String USER_LOCKED = "0";

	/**
	 * 积分来源：邀请码
	 */
	public static final String SCORE_SOURCE_INVITION_CODE = "1";
	/**
	 * 积分来源：购买
	 */
	public static final String SCORE_SOURCE_BUY = "2";

	/**
	 * 活动类型：免费
	 */
	public static final String ACTIVITY_TYPE_FREE = "1";

	/**
	 * 活动类型：拼团
	 */
	public static final String ACTIVITY_TYPE_GROUP = "2";

	/**
	 * 活动类型：购买
	 */
	public static final String ACTIVITY_TYPE_BUY = "3";

	/**
	 * 免费活动所扣积分
	 */
	public static final int FREE_ACTIVITY_SIGN_UP_SCORE = 10;

	/**
	 * 购买时，1元对应的积分数
	 */
	public static final String GET_SCORE_OF_BUY = "0.1";


	/**
	 * 邀请奖励积分
	 */
	public static final int INVITATION_SCORE = 100;
	
	public static final int REGISTER_SCORE = 500;

	/**
	 * 排序方式：asc
	 */
	public static final String ORDER_TYPE_ASC = "asc";

	/**
	 * 排序方式：desc
	 */
	public static final String ORDER_TYPE_DESC = "desc";
	
	public static final String SYSTEM_MESSAGE = "1";
	
	public static final String RECEIVED_MESSAGE = "2";
	
	public static final String SENDED_MESSAGE = "3";
	

	public static final String IS_DELETE = "0";

	public static final String IS_NOT_DELETE = "1";

	public static final String TOPED = "1";

	public static final String NOT_TOPED = "0";

	public static final String NOT_DEAL = "0";

	public static final String DEALED = "1";

	/**
	 * 1：未审核
	 */
	public static final String NOT_APPLYED = "1";

	/**
	 * 2：未通过
	 */
	public static final String NOT_PASSED = "2";

	/**
	 * 3：已通过
	 */
	public static final String PASSED = "3";

	/**
	 * 用户头像路径
	 */
	public static final String USER_HEADER_PATH = CommonUtil.FILE_SEPARATOR
			+ "images" + CommonUtil.FILE_SEPARATOR + "header"
			+ CommonUtil.FILE_SEPARATOR;

	/**
	 * 用户评价图片路径
	 */
	public static final String USER_CHAT_PATH = CommonUtil.FILE_SEPARATOR
			+ "images" + CommonUtil.FILE_SEPARATOR + "chat"
			+ CommonUtil.FILE_SEPARATOR;

	/**
	 * 图片路径
	 */
	public static final String UPLOAD_IMAGE_PATH = CommonUtil.FILE_SEPARATOR
			+ "images" + CommonUtil.FILE_SEPARATOR + "upload"
			+ CommonUtil.FILE_SEPARATOR;

	/**
	 * 群推消息发送成功
	 */
	public static final String OK = "ok";
	/**
	 * 用户在线，消息在线下发
	 */
	public static final String SUCCESSED_ONLINE = "successed_online";
	/**
	 * 用户离线，消息存入离线系统
	 */
	public static final String SUCCESSED_OFFLINE = "successed_offline";
	/**
	 * 状态丢弃（无效用户）
	 */
	public static final String SUCCESSED_IGNORE = "successed_ignore";

	// 环信消息常量定义
	/**
	 * 消息类型，广场信息评论
	 */
	public static final int MESSAGE_TYPE_SQUARE_COMMENT = 1;

	/**
	 * 消息类型，发布广场信息
	 */
	public static final int MESSAGE_TYPE_PUBLISH_SQUARE = 2;

	/**
	 * 消息类型，系统消息
	 */
	public static final int MESSAGE_TYPE_SYSTEM_MESSAGE = 3;
	
	/**
	 * 消息类型，广场信息点赞
	 */
	public static final int MESSAGE_TYPE_SQUARE_LIKE = 4;

}
